]> dgit.raspbian.org Git - gnome-shell.git/commit
st-texture-cache: Don't cache GIcons which cannot be serialized
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 30 Sep 2011 17:57:09 +0000 (19:57 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 30 Sep 2011 18:14:25 +0000 (20:14 +0200)
commite49a595f54b14d681ad01c8da1886ff659080e10
tree71ed5232c785825ec4b71f3930160b9710973899
parent77485c2a0433bbb638dc92b6990050888edd26c6
st-texture-cache: Don't cache GIcons which cannot be serialized

For GIcons we use g_icon_to_string() in the key, but the function
will return NULL if the icon cannot be serialized. As a result,
all non-serializable GIcons of the same size end up with the same
cache key - an example for this are contacts with avatars, which
currently all end up with the same image.
To fix, opt out of caching for GIcons which cannot be serialized.

https://bugzilla.gnome.org/show_bug.cgi?id=660585
src/st/st-texture-cache.c